package tcln.gxtx.client.widget.treegrid;

import com.extjs.gxt.ui.client.data.ModelData;
import com.extjs.gxt.ui.client.store.ListStore;
import com.extjs.gxt.ui.client.widget.treegrid.TreeGridView;

/**
 * An extended treegrid view.
 * 
 * @param <M>
 * @author Truong Chau Lien Ngoc (lienngoc@gmail.com)
 */
public class ExtendedTreeGridView<M extends ModelData> extends TreeGridView {

    /**
     * Returns current list store which holds a 1-1 map between visible rows and model data.
     * 
     * @return
     */
    @SuppressWarnings("unchecked")
    protected ListStore<M> getListStore() {
        return (ListStore<M>) ds;
    }
}
